'use strict';
const db = uniCloud.database();
exports.main = async (event, context) => {
	const good = db.collection("good");
	let res = await good.doc(event._id).update({
		"logo": event.logo,
		"name": event.name,
		"all_num": event.all_num,
		"price": event.price,
		"end_time": event.end_time,
		"start_time": event.start_time,
	});
	return res;
};